home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / NextAnswers / 1162_fstab_altered-system_fails_boot.rtf < prev    next >
Text File  |  1995-06-12  |  3KB  |  69 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;\f2\fmodern Ohlfs;}
  2. \paperw11440
  3. \paperh9000
  4. \margl120
  5. \margr120
  6. {\colortbl;\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ulnone\fs28\fc0\cf0 Q:  I changed
  8. \b  /etc/fstab
  9. \b0 , and now NEXTSTEP won't boot.  If I boot the system in single-user mode, I can't edit 
  10. \b /etc/fstab
  11. \b0  to fix it because the file system is read-only.  What do I do to fix it?\
  12. \
  13. A:  
  14. \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\fc1\cf1 The start-up script
  15. \b  /etc/rc.boot 
  16. \b0 makes the root filesystem read-write with the command:\
  17. \
  18.  
  19. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc1\cf1     
  20. \f1\fs24 mount -o remount /
  21. \fs28 \
  22.  
  23. \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\f0\fc1\cf1 \
  24. The 
  25. \b mount
  26. \b0  command looks in
  27. \b  /etc/fstab
  28. \b0  for an entry that describes "
  29. \b /
  30. \b0 ". It should find a line like:\
  31. \
  32.  
  33. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f1\fs24\fc1\cf1     /dev/sd0a    /    4.3   rw,noquota,noauto     0    1\
  34.  
  35. \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\f0\fs28\fc1\cf1 \
  36. This means that the filesystem on the device sd0a should be mounted as the root ("/") filesystem.  If this line in the 
  37. \b /etc/fstab
  38. \b0  file is missing,  incorrect, or damaged, the mount command fails.  You are left with a read-only root filesystem.\
  39. \
  40. The solution is to re-mount the root file system with the shell command:\
  41. \
  42.  
  43. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f1\fs24\fc1\cf1     # mount -o remount /dev/sd0a /\
  44.  
  45. \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\f0\fs28\fc1\cf1 \
  46. In this form, you are telling mount exactly which device to use, so it doesn't look in 
  47. \b /etc/fstab
  48. \b0  and get confused.  Once you have the root filesystem mounted read-write, fix it with a text editor (don't include any blank lines) or get a copy of a default
  49. \b  /etc/fstab
  50. \b0 .  You can find default copies in 
  51. \b /usr/template/client
  52. \b0 . i.e.:\
  53. \
  54.  
  55. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f1\fs24\fc1\cf1     # cp /usr/template/client/etc/fstab.sd330 /etc/fstab\
  56.  
  57. \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\f0\fs28\fc1\cf1 \
  58. Then shut down and reboot your system:\
  59. \
  60.  
  61. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f1\fs24\fc1\cf1     # reboot\
  62.  
  63. \f0\fs28 \
  64. QA833\
  65. \
  66. Valid for 1.0, 2.0, 3.0, 3.1\
  67. \
  68.  
  69.